
/*
 * @Author: _oufen
 * @Date: 2023-07-10 13:40:44
 * @LastEditTime: 2023-07-18 20:51:01
 * @Description:
 */
#ifndef __MOTOR_H__
#define __MOTOR_H__

#include "ti_msp_dl_config.h"

typedef enum
{
    FORWARD,
    BACK,
    STOP
} MotorDIR_Choose;

#define PWM_MAX 8000 // 满装载值为    8000

void Motor_Left_DIR(MotorDIR_Choose Direction);              // 左轮电机正反转
void Motor_Right_DIR(MotorDIR_Choose Direction);             // 右轮电机正反转
void Load_Motor_Pwm(int32_t Motor1_PWM, int32_t Motoe2_PWM); // 装载PWM

#endif
